package com.aspose.cells;

class zalv implements zahf {
   private zif a;
   private Color b;
   private zamf c;
   private int d = 1;
   private boolean e = true;

   zalv(zif var1) {
      this.a = var1;
      this.b = Color.getBlack();
      this.c = new zamf();
   }

   public zagx d() {
      return null;
   }

   public Color a() {
      return this.d == 0 ? Color.getEmpty() : this.b;
   }

   public void a(Color var1) {
      this.b = var1;
   }

   public boolean e() {
      return this.d != 0;
   }

   boolean f() {
      if (!this.e()) {
         return false;
      } else if (this.b().a() <= 0.0D) {
         return false;
      } else {
         return !this.a().isEmpty() && this.a().getA() != 0;
      }
   }

   public zahg b() {
      return this.c;
   }

   public int c() {
      return this.d;
   }

   public void a(int var1) {
      this.d = var1;
   }

   public boolean g() {
      return this.e;
   }

   public void a(boolean var1) {
      this.e = var1;
   }

   void b(Color var1) {
      if (this.d == 1 || this.g() && this.c() != 0) {
         this.a(var1);
      }

   }

   public boolean a(zalv var1) {
      if (this.e() != var1.e()) {
         return false;
      } else {
         if (this.e() && var1.e()) {
            if (this.c() != var1.c()) {
               return false;
            }

            if (this.b().b() != var1.b().b()) {
               return false;
            }

            if (!this.a().equals(var1.a())) {
               return false;
            }

            if (this.b().a() != var1.b().a()) {
               return false;
            }
         }

         return true;
      }
   }
}
